#ifndef PATHSTACK_H
#define PATHSTACK_H

#define MAX_DEPTH 128
#include <stddef.h>
typedef struct path_stack_s{
    char *dirs[MAX_DEPTH];
    int top;
} path_stack_t;

int init_stack(path_stack_t *s);
int push_dir(path_stack_t *s, const char *dir);
char* pop_dir(path_stack_t *s);
int free_stack(path_stack_t *s);
#endif // PATHSTACK_H

